﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Controller
{
    public class FacilitiesController
    {
        private FacilityBussiness Controller = new FacilityBussiness();

        public void AddData()
        {
            Controller.AddData(objFacilities);
        }

        public bool DeleteData(int k)
        {
            return Controller.DeleteData(k);
        }

        public void UpdateData()
        {
            Controller.UpdateData(objFacilities);
        }

        public List<TblFacility> GetAllData()
        {
            return Controller.GetAll();
        }


        public TblFacility objFacilities { get; set; }
    }
}
